public class problem10 {
    public static void main(String[] args) {
        int start = 2;
        int end = 2000000;
        int sum = 0;

        for (int i = start; i < end; i++) {
            if (ProjectEuler.isPrime(i)) {
                System.out.println(i);
                sum += i;
            }
        }
        System.out.println(sum);
    }
}
